Previous Book Contents Book Index Next

Inside Macintosh: AppleScript Finder Guide /
Chapter 2 - Finder Objects / Object Class Definitions


Application Process

An object of class Application Process is a process that has been launched from an application file.

PROPERTIES
An application process has all the properties defined for object class Process
on page 76: Creator Type, File, File Type, Frontmost, Name, Partition Size, Partition Space Used, Remote Events, Scriptable, and Visible.

An application process also has this property:

application file
The application file from which this process was launched.
Class: Reference
Modifiable: No
ELEMENT CLASSES
None

COMMANDS HANDLED
Count, Data Size, Exists, Get, Sort

DEFAULT VALUE CLASS RETURNED
A reference or, if you use the plural form application processes, a list of references of the form

application "ApplicationProcessName"
where ApplicationProcessName is the name of an application process as it appears in the Applications menu.

EXAMPLES
You can use a script like this to get a list of all the application processes that are currently running:

tell application "Finder"   application processes
end

--result: {application "HyperCard", application "Script 
Editor", application "Scriptable Text Editor"}
The following script hides the TeachText application process:

tell application "Finder"   set visible of application process "TeachText" to false
end tell 

Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996